package com.caocaog.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 商品促销历史信息
 *
 * @author chechen
 * @date 2021-11-20
 */
@Data
@NoArgsConstructor
@TableName("mk_shop_promo_his")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mk_shop_promo_his对象", description = "商品促销历史信息", parent = ShopPromoBase.class)
public class ShopPromoHis extends ShopPromoBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "商品促销信息表id")
    private String shopPromoId;

    public ShopPromoHis(ShopPromoBase shopPromoBase) {
        super(shopPromoBase);
    }

    public ShopPromoHis(ShopPromo shopPromo) {
        super(shopPromo);
        this.shopPromoId = shopPromo.getId();
    }
}
